Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use async_timeout instead of asyncio.wait_for #38

Merged
merged 1 commit into from
Sep 26, 2022
Merged

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Sep 26, 2022

Avoids creating a task which will make it easier
to trace down races in the aio message_bus write_callback

We currently have a race (maybe destruction race) in

if self.offset >= len(self.buf):

where somehow self.buf is None

Avoids creating a task which will make it easier
to trace down races in the aio message_bus write_callback
@codecov
Copy link

codecov bot commented Sep 26, 2022

Codecov Report

Base: 81.03% // Head: 81.15% // Increases project coverage by +0.11% 🎉

Coverage data is based on head (43999cb) compared to base (d71f0e1).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #38      +/-   ##
==========================================
+ Coverage   81.03%   81.15%   +0.11%     
==========================================
  Files          24       24              
  Lines        2869     2871       +2     
  Branches      626      627       +1     
==========================================
+ Hits         2325     2330       +5     
+ Misses        335      332       -3     
  Partials      209      209              
Impacted Files Coverage Δ
src/dbus_fast/aio/message_bus.py 87.33% <100.00%> (+0.11%) ⬆️
src/dbus_fast/message_bus.py 72.31% <0.00%> (-0.38%) ⬇️
src/dbus_fast/glib/message_bus.py 82.62% <0.00%> (+2.11%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@bdraco bdraco merged commit cb31780 into main Sep 26, 2022
@bdraco bdraco deleted the async_timeout branch September 26, 2022 18:06
pyproject.toml Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants